const express = require('express')
const router = express.Router()

// 1. 导入验证表单数据的中间件
const expressJoi = require('@escook/express-joi')
// 2. 导入需要的验证规则对象
const { operator_schema, operator_schema_path } = require('../schema/commemorate_schema')

const commemorateHandler = require('../router_handler/commemorate_handler.js')

router.post('/operator', expressJoi(operator_schema), commemorateHandler.UpdateOperator)

router.get('/operator/:_id', expressJoi(operator_schema_path), commemorateHandler.getOperator)
module.exports = router
  